export const STATUS_OPTIONS = [
  {
    label: "待分解",
    value: "0"
  },
  {
    label: "已分解",
    value: "1"
  },
  {
    label: "已执行",
    value: "2"
  },
  {
    label: "已反馈",
    value: "3"
  }
];
export const CHECK_OPTIONS = [
  {
    label: "满足",
    value: "1"
  },
  {
    label: "不满足",
    value: "0"
  }
];
export const DEV_CONTROL_OPTIONS = [
  {
    label: "开",
    value: "1"
  },
  {
    label: "关",
    value: "0"
  }
];

export const TABLE_COLUNMS = [
  {
    title: "序号",
    key: "id",
    type: "index",
    width: 65,
    align: "center"
  },
  {
    title: "区域",
    key: "areaName"
  },
  {
    title: "时间",
    key: "ordertime"
  },
  {
    title: "限电负荷",
    key: "peakclipping"
  },
  {
    title: "可调负荷",
    key: "drcap"
  },
  {
    title: "检验结果",
    key: "checkLabel"
  },
  {
    title: "指令状态",
    key: "orderLabel"
  }
].map((element) => {
  const { width } = element;
  if (!width) {
    return {
      ...element,
      minWidth: 200
    };
  }
  return element;
});
export const TABLE_DECOMPOSE_COLUNMS = [
  {
    title: "序号",
    key: "id",
    type: "index",
    width: 65,
    align: "center"
  },
  {
    title: "区域",
    key: "qy"
  },
  {
    title: "厂站",
    key: "cz"
  },
  {
    title: "用户名称",
    key: "yhmc"
  },
  {
    title: "设备ID",
    key: "sbid"
  },
  {
    title: "设备名称",
    key: "sbmc"
  },
  {
    title: "可调负荷",
    key: "kdfh"
  },
  {
    title: "设备控制状态",
    key: "sbkzztLabel"
  }
].map((element) => {
  const { width } = element;
  if (!width) {
    return {
      ...element,
      minWidth: 200
    };
  }
  return element;
});
export const TABLE_DECOMPOSE_LIST_COLUNMS = [
  {
    title: "序号",
    key: "id",
    type: "index",
    width: 65,
    align: "center"
  },
  {
    title: "区域",
    key: "qy"
  },
  {
    title: "厂站",
    key: "cz"
  },
  {
    title: "用户名称",
    key: "yhmc"
  },
  {
    title: "设备ID",
    key: "sbid"
  },
  {
    title: "设备名称",
    key: "sbmc"
  },
  {
    title: "可调负荷",
    key: "kdfh"
  }
].map((element) => {
  const { width } = element;
  if (!width) {
    return {
      ...element,
      minWidth: 200
    };
  }
  return element;
});
export const TABLE_CUSTOMER_COLUNMS = [
  {
    title: "序号",
    key: "id",
    type: "index",
    width: 65,
    align: "center"
  },
  {
    title: "用户ID",
    key: "custId"
  },
  {
    title: "用户名称",
    key: "custName"
  },
  {
    title: "地址",
    key: "address"
  }
].map((element) => {
  const { width } = element;
  if (!width) {
    return {
      ...element,
      minWidth: 200
    };
  }
  return element;
});
export const EDIT_RULES = {
  custName: [
    {
      required: true,
      message: "请选择用户",
      trigger: "change"
    }
  ]
};
